package com.pojo;

import java.io.Serializable;

/**
 *
 * @TableName t_customer
 */
public class Customer implements Serializable {
    /**
     *
     */
    private Integer cid;

    /**
     *
     */
    private String cusername;

    /**
     *
     */
    private String cjobs;

    /**
     *
     */
    private String cphone;

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Integer getCid() {
        return cid;
    }

    /**
     *
     */
    public void setCid(Integer cid) {
        this.cid = cid;
    }

    /**
     *
     */
    public String getCusername() {
        return cusername;
    }

    /**
     *
     */
    public void setCusername(String cusername) {
        this.cusername = cusername;
    }

    /**
     *
     */
    public String getCjobs() {
        return cjobs;
    }

    /**
     *
     */
    public void setCjobs(String cjobs) {
        this.cjobs = cjobs;
    }

    /**
     *
     */
    public String getCphone() {
        return cphone;
    }

    /**
     *
     */
    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Customer other = (Customer) that;
        return (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
                && (this.getCusername() == null ? other.getCusername() == null : this.getCusername().equals(other.getCusername()))
                && (this.getCjobs() == null ? other.getCjobs() == null : this.getCjobs().equals(other.getCjobs()))
                && (this.getCphone() == null ? other.getCphone() == null : this.getCphone().equals(other.getCphone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getCusername() == null) ? 0 : getCusername().hashCode());
        result = prime * result + ((getCjobs() == null) ? 0 : getCjobs().hashCode());
        result = prime * result + ((getCphone() == null) ? 0 : getCphone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cid=").append(cid);
        sb.append(", cusername=").append(cusername);
        sb.append(", cjobs=").append(cjobs);
        sb.append(", cphone=").append(cphone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}